package com.admgt.resource.ui;

import javax.swing.table.DefaultTableModel;

public class ProgressTableModel  extends DefaultTableModel{
	private static final long serialVersionUID = 1L;
	//public Object[] rowData = {"0",".dd.","test","as","fd","rte","rt",0,"erter"};
	String[] tableColumns = new String[] {"ID", 
			"文件名", "文件大小", "主机名", "状态",
			"本地路径", "服务器路径","进度", "完成度" };
	public ProgressTableModel() {
		super();
		for(String s: tableColumns){
			addColumn(s);
		}
	}
	@Override
	public boolean isCellEditable(int row, int column) {
		return false;
	}
	

	public void addProcessBar(Object[] rowData){
		//rowData[1] = "File"+ (this.getRowCount()+1);
		//rowData = resourceContext.addRowData();
		addRow(rowData);
	}
	

}